package com.authority.common;

public enum MenuTypeEnum {

	PCMENU(1, "pc菜单"), RFMENU(2, "rf菜单"),RESOURCE(3,"资源");

	private MenuTypeEnum(int index, String text) {
		this.index = index;
		this.text = text;
	}

	private int index;

	private String text;

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public static String valueOf(int index) {
		for (MenuTypeEnum t : MenuTypeEnum.values()) {
			if (t.getIndex() == index) {
				return t.getText();
			}
		}
		return null;
	}

}
